package com.yy.permissions_general.common.constant;

import org.springframework.stereotype.Component;

/**
* @Description: 系 统 常 量
* @Author: YY
* @Date: 2021/3/14
*/
@Component
public class SystemConstant {

    /*超级管理员不认证*/
    public static final Boolean SUPER_AUTH_OPEN = true;

    /*管理员账号*/
    public static final String SUPER_ADMIN = "xyLayui";

    /*UTF-8 编码格式*/
    public static final String UTF8 = "UTF-8";

    /*GBK 编码格式*/
    public static final String GBK = "GBK";

    /*字节 编码格式*/
    public static final String ISO = "iso-8859-1";

    /*默认密码*/
    public static final String PASS_WORD = "111111";

    /* JSON输出的时间格式*/
    public static final String TIME_FORMAT = "yyyy-MM-dd HH:mm:ss";

    public static final String DATE_FORMAT = "yyyy-MM-dd";

    /*系统首页*/
    public static final String HOME_INFO = "{'title': '首页','href': '../welcomePage'}";

    /*系统LOGO*/
    public static final String LOGO_INFO = "{'title': '小邑','image': '../static/admin/img/login/logo.png','href': ''}";

    /* 最大长度 由于js的number只能表示15个数字，超出长度会导致精度问题 超出这个长度会转换字符串*/
    public static final Integer JS_NUMBER_MAX_LENGTH = 12;

    /*文件模块目录*/
    public static final String USER_MODULE_FILE = "user"; //用户模块文件

    public static final String FILE_MODULE_FILE = "file"; //文件管理文件

    /*路径目录分隔符*/
    public static final String DIR_SPLIT = "/";

    /*字符串分隔符*/
    public static final String STRING_SPLIT = ",";

    /*后缀分隔符*/
    public static final String SUFFIX_SPLIT = ".";

    /*目录默认类型*/
    public static final String DEFAULT_DIR_TYPE = "dir";


}
